package chapter11;

public class Console {
    public static void say(RobotBrain robotBrain){
        robotBrain.show();
        robotBrain.feature();
    }
    public static void main(String[] args) {
//        Notebook notebook = new Notebook("i5",8);
//        notebook.show();
//        notebook.feature();
//        Desktop desktop = new Desktop("i7",16);
//        desktop.show();
//        desktop.feature();
        say(new Notebook("i5",8));
        say(new Desktop("i9",32));
        RobotBrain robotBrain = new Desktop("i9",16);
        say(robotBrain);
        RobotBrain robotBrain1 = new Notebook("i5",8);
        say(robotBrain1);


    }
}
